// Authentication Manager ASL definitions
// Copyright 2005 (C) Ralph Thomas

#ifndef AUTH_MANAGER_ASL_H
#define AUTH_MANAGER_ASL_H

//
/// These two definitions are the Adam and Eve definitions for the
/// Mission Authentication Dialog. Normally dialogs are contained
/// in external files. In this case the dialog is too important to
/// keep externally (in case we can't find it, etc). It also makes
/// sense to keep it internally, as this is library code.
//
#define AUTH_ASL_EVE												\
"dialog(name: \"E-mail Address and Password\", placement: place_row) {"						\
"	panel() {"												\
"		column(child_horizontal: align_fill, spacing: 3) {"						\
"			static_text(name: \"Your email address and password are required to show your email\");"\
"			row(spacing: 2) {"									\
"				edit_text(name: \"E-Mail Address:\", bind: @username);"				\
"				static_text(name: \"@missioncode.org\");"						\
"			}"											\
"			edit_text(name: \"Password:\", password: true, bind: @password);"			\
"			separator();"										\
"			row(child_horizontal: align_right) {"							\
"				button(items: ["								\
"					{ name: \"Cancel\", action: @cancel },"					\
"					{ name: \"Reset\", action: @reset, modifiers: @opt }"			\
"					]);"									\
"				button(name: \"Log in\", default: true, action: @authenticate, bind: @result); "\
"			}"											\
"		}"												\
"	}"													\
"}"

#define AUTH_ASL_ADAM												\
"sheet authentication {"											\
"  interface:"													\
"	username: \"\";"											\
"	password: \"\";"											\
"  output:"													\
"	result <== { username: username, password: password };"							\
"}"


#endif

